/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springblade.core.mp.base.BaseEntity;

import java.time.LocalDateTime;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springblade.core.tenant.mp.TenantEntity;

/**
 * 电梯-附件表，电梯一对多附件实体类
 *
 * @author ysq
 * @since 2024-05-23
 */
@Data
@TableName("blade_elevator_attachment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "ElevatorAttachment对象", description = "电梯-附件表，电梯一对多附件")
public class ElevatorAttachment extends TenantEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 电梯id
	 */
	@ApiModelProperty(value = "电梯id")
	private Long elevatorId;

	/**
	 * 检验报告类型: 1-电梯监督检验报告,2-电梯定期检验报告 ；其余保留
	 */
	@ApiModelProperty(value = "检验报告类型: 1-电梯监督检验报告,2-电梯定期检验报告, 3安装监督检验报告、4,改造监督检验报告、5,大修监督检验报告")
	private Integer reportAttachmentType;

	/**
	 * 报告编号
	 */
	@ApiModelProperty(value = "报告编号")
	private String reportAttachmentNum;

	/**
	 * 检验报告开始日期
	 */
	@ApiModelProperty(value = "检验报告开始日期")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime reportAttachmentBeginTime;
	/**
	 * 检验报告结束日期
	 */
	@ApiModelProperty(value = "检验报告结束日期")
	@JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime reportAttachmentEndTime;
	/**
	 * 通用附件json
	 */
	@ApiModelProperty(value = "通用附件json")
	private String attachment;



}
